package com.itheima.factory;

import com.itheima.service.UserService;

/**
 * Description:
 *
 * @author codermao
 * @date 2023/11/2 21:01
 */
public class InstanceFactory {
    public Object getObject(){
        return new UserService(){
            @Override
            public void save() {
                System.out.println("实例工厂 匿名内部类对象 save....");
            }
        };
    }
}
